package com.xianggu.threadPool.rejectStrategy;

import com.xianggu.threadPool.MyThreadPool;

/**
 * @author chengjy
 * @date 2025/3/14
 */
public class ThrowRejectHandle implements RejectHandle {
    @Override
    public void reject(MyThreadPool myThreadPool, Runnable runnable) {
        throw new RuntimeException("队列池已满，请稍后重试");
    }
}
